package po;


import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * <p>  
 *  TbGroup 分组表
 * </p>
 * @author  XieTao
 * @date 2020-04-10 
 */

public class TbGroup  implements Serializable {


	/**
	 * 分组ID
	 */
	private String gid;

	/**
	 * 所属用户ID
	 */
	private String userId;

	/**
	 * 分组名
	 */
	private String name;

	/**
	 * 创建时间
	 */
	private Date createTime;

	/**
	 * 是否删除
	 */
	private Integer isDefault;

	public String getGid() {
		return gid;
	}

	public void setGid(String gid) {
		this.gid = gid;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getIsDefault() {
		return isDefault;
	}

	public void setIsDefault(Integer isDefault) {
		this.isDefault = isDefault;
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) {
			return true;
		}
		if (!(o instanceof TbGroup)) {
			return false;
		}
		TbGroup tbGroup = (TbGroup) o;
		return Objects.equals(gid, tbGroup.gid) &&
				Objects.equals(userId, tbGroup.userId) &&
				Objects.equals(name, tbGroup.name) &&
				Objects.equals(createTime, tbGroup.createTime) &&
				Objects.equals(isDefault, tbGroup.isDefault);
	}

	@Override
	public int hashCode() {
		return Objects.hash(gid, userId, name, createTime, isDefault);
	}

	@Override
	public String toString() {
		return "TbGroup{" +
				"gid='" + gid + '\'' +
				", userId='" + userId + '\'' +
				", name='" + name + '\'' +
				", createTime=" + createTime +
				", isDefault=" + isDefault +
				'}';
	}
}
